import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/home/home.vue'
import Error from '../views/404/Error.vue'
Vue.use(VueRouter)

const routes = [
  
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/home',
    name: 'home',
    component: Home
  },
  {
    path:'*',
    name:'Error',
    component:Error
  },
]

const router = new VueRouter({
  routes,
  mode:'history'
})

export default router
